//
//  BEErrorExtension.swift
//  BasicExtensions
//
//  Created by Fanxx on 2019/5/22.
//  Copyright © 2019 Fanxx. All rights reserved.
//

import Foundation

extension NSError {
    public convenience init(domain: String = "unspecified error", code: Int = -1, info: String) {
        self.init(domain: domain, code: code, userInfo: [NSLocalizedDescriptionKey: info])
    }
}
